package com.hckjsec.cloud.mapper;

import java.util.List;
import java.util.Map;

import com.hckjsec.cloud.domain.AppletsBusinessMatter;

/**
 * 申办信息-公证事项Mapper接口
 * 
 * @author cyt
 * @date 2021-08-23
 */
public interface AppletsBusinessMatterMapper 
{
    /**
     * 查询申办信息-公证事项
     * 
     * @param id 申办信息-公证事项ID
     * @return 申办信息-公证事项
     */
    public AppletsBusinessMatter selectAppletsBusinessMatterById(Long id);

    /**
     * 查询申办信息-公证事项列表
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 申办信息-公证事项集合
     */
    public List<AppletsBusinessMatter> selectAppletsBusinessMatterList(AppletsBusinessMatter appletsBusinessMatter);

    /**
     * 新增申办信息-公证事项
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 结果
     */
    public int insertAppletsBusinessMatter(AppletsBusinessMatter appletsBusinessMatter);

    /**
     * 修改申办信息-公证事项
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 结果
     */
    public int updateAppletsBusinessMatter(AppletsBusinessMatter appletsBusinessMatter);

    /**
     * 删除申办信息-公证事项
     * 
     * @param id 申办信息-公证事项ID
     * @return 结果
     */
    public int deleteAppletsBusinessMatterById(Long id);

    /**
     * 批量删除申办信息-公证事项
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppletsBusinessMatterByIds(Long[] ids);


    /**
     * 分组查询各事项数量
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public List<Map<String, Integer>>  findMatterIdByNumMap(Long[] ids);


    /**
     * 查询年度-公证事项列表
     *
     * @param appletsBusinessMatter 申办信息-公证事项年度
     * @return 申办信息-公证事项年度集合
     */
    public List<AppletsBusinessMatter> selectAdministrationMatterList(AppletsBusinessMatter appletsBusinessMatter);
}
